package com.youlv.yl.entity.hotel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * <p>
 * 订单流水表 
 * </p>
 *
 * @author fenghe
 * @since 2022-01-25
 */
@Data
@TableName("h_hotel_order_log")
@ApiModel(value = "HotelOrderLog对象", description = "订单流水表 ")
public class HotelOrderLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("oid")
    private Long oid;

    @TableField("type")
    private Integer type;

    @TableField("info")
    private String info;

    @TableField("ctime")
    private Date ctime;

    public HotelOrderLog(Long oid, Integer type, String info) {
        this.oid = oid;
        this.type = type;
        this.info = info;
        this.ctime = new Date();
    }
}
